import reactDom from 'react-dom'
import React from 'react'

const a = (
  <button>aaa</button>
)
// 函数式组件
const App = (props) => {
  return (
    <div>
      <h2>
        哈哈哈react真好玩
        { /*我是注释*/ }
        { props.title }
        { a }
      </h2>
    </div>
  )
}

reactDom.render(
  <App title="你好react" subTitle="标题2"/>
  // 相当于 App()
  ,
  document.querySelector('#root')
)